/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PantallaProveedoresNuevoProv.java
 *
 * Created on 28-may-2011, 17:57:47
 */
package interfacesGraficas;

import java.awt.Component;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JTextField;

/**
 *
 * @author diego
 */
public class PantallaProveedoresNuevoProv extends JFrame {

    /** Creates new form PantallaProveedoresNuevoProv */
    public PantallaProveedoresNuevoProv() {
        initComponents();
    }
    
    @Override
    public Component[] getComponents(){
        Component[] componentes = new Component[5];
        componentes[0] = txtCodigoProveedor;
        componentes[1] = txtDireccion;
        componentes[2] = txtEmail;
        componentes[3] = txtTelefono;
        componentes[4] = txtNombreProveedor;
        
        return componentes;
    }
    
    

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        jToolBar1 = new javax.swing.JToolBar();
        btnGuardar = new javax.swing.JButton();
        btnSalir = new javax.swing.JButton();
        jpanelProovedor = new javax.swing.JPanel();
        txtCodigoProveedor = new javax.swing.JTextField();
        txtDireccion = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        lblEmail = new javax.swing.JLabel();
        txtTelefono = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        txtNombreProveedor = new javax.swing.JTextField();
        txtEmail = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        setTitle("Datos Proveedor");

        jToolBar1.setRollover(true);
        jToolBar1.setMinimumSize(new java.awt.Dimension(100, 40));

        btnGuardar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Save_30.png"))); // NOI18N
        btnGuardar.setToolTipText("Guardar");
        jToolBar1.add(btnGuardar);

        btnSalir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Log-out-30.png"))); // NOI18N
        btnSalir.setToolTipText("Salir");
        jToolBar1.add(btnSalir);

        jpanelProovedor.setBorder(javax.swing.BorderFactory.createTitledBorder("Proveedor"));
        jpanelProovedor.setLayout(new java.awt.GridBagLayout());

        txtCodigoProveedor.setMaximumSize(new java.awt.Dimension(190, 27));
        txtCodigoProveedor.setMinimumSize(new java.awt.Dimension(190, 27));
        txtCodigoProveedor.setPreferredSize(new java.awt.Dimension(190, 27));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(5, 10, 5, 10);
        jpanelProovedor.add(txtCodigoProveedor, gridBagConstraints);

        txtDireccion.setMaximumSize(new java.awt.Dimension(190, 27));
        txtDireccion.setMinimumSize(new java.awt.Dimension(190, 27));
        txtDireccion.setPreferredSize(new java.awt.Dimension(190, 27));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(5, 10, 5, 10);
        jpanelProovedor.add(txtDireccion, gridBagConstraints);

        jLabel1.setText("Código");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(10, 10, 0, 10);
        jpanelProovedor.add(jLabel1, gridBagConstraints);

        jLabel2.setText("Nombre");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(10, 10, 0, 10);
        jpanelProovedor.add(jLabel2, gridBagConstraints);

        lblEmail.setText("e-mail");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
        gridBagConstraints.insets = new java.awt.Insets(10, 10, 0, 10);
        jpanelProovedor.add(lblEmail, gridBagConstraints);

        txtTelefono.setMaximumSize(new java.awt.Dimension(190, 27));
        txtTelefono.setMinimumSize(new java.awt.Dimension(190, 27));
        txtTelefono.setPreferredSize(new java.awt.Dimension(190, 27));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.insets = new java.awt.Insets(5, 10, 5, 10);
        jpanelProovedor.add(txtTelefono, gridBagConstraints);

        jLabel4.setText("Telefono");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
        gridBagConstraints.insets = new java.awt.Insets(10, 10, 0, 10);
        jpanelProovedor.add(jLabel4, gridBagConstraints);

        txtNombreProveedor.setMaximumSize(new java.awt.Dimension(190, 27));
        txtNombreProveedor.setMinimumSize(new java.awt.Dimension(190, 27));
        txtNombreProveedor.setPreferredSize(new java.awt.Dimension(190, 27));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(5, 10, 5, 10);
        jpanelProovedor.add(txtNombreProveedor, gridBagConstraints);

        txtEmail.setMaximumSize(new java.awt.Dimension(190, 27));
        txtEmail.setMinimumSize(new java.awt.Dimension(190, 27));
        txtEmail.setPreferredSize(new java.awt.Dimension(190, 27));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.insets = new java.awt.Insets(5, 10, 5, 10);
        jpanelProovedor.add(txtEmail, gridBagConstraints);

        jLabel5.setText("Dirección");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(10, 10, 0, 10);
        jpanelProovedor.add(jLabel5, gridBagConstraints);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, 449, Short.MAX_VALUE)
            .addComponent(jpanelProovedor, javax.swing.GroupLayout.PREFERRED_SIZE, 449, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jpanelProovedor, javax.swing.GroupLayout.DEFAULT_SIZE, 234, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnGuardar;
    private javax.swing.JButton btnSalir;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JToolBar jToolBar1;
    private javax.swing.JPanel jpanelProovedor;
    private javax.swing.JLabel lblEmail;
    private javax.swing.JTextField txtCodigoProveedor;
    private javax.swing.JTextField txtDireccion;
    private javax.swing.JTextField txtEmail;
    private javax.swing.JTextField txtNombreProveedor;
    private javax.swing.JTextField txtTelefono;
    // End of variables declaration//GEN-END:variables

    public JButton getBtnSalir() {
        return btnSalir;
    }

    public JButton getBtnGuardar() {
        return btnGuardar;
    }

    public JTextField getTxtCodigoProveedor() {
        return txtCodigoProveedor;
    }

    public JTextField getTxtDireccion() {
        return txtDireccion;
    }

    public JTextField getTxtNombreProveedor() {
        return txtNombreProveedor;
    }

    public JTextField getTxtTelefono() {
        return txtTelefono;
    }

    public JTextField getTxtEmail() {
        return txtEmail;
    }
    
    
}
